#include "template_method.h"

void CoffeinBeverage::prepare_recipe()
{
    boil_water();
    brew();
    pour_in_cup();
    add_condiments();
}

void CoffeinBeverage::boil_water()
{
    std::cout <<"boil water!" << std::endl;
}

void CoffeinBeverage::pour_in_cup()
{
    std::cout << "pour in cup!" << std::endl;
}

void Coffee::brew()
{
    std::cout << "Dripping coffee through filter." << std::endl;
}

void Coffee::add_condiments()
{
    std::cout << "Add Sugar and milk." << std::endl;
}

void Tea::brew()
{
     std::cout << "Dripping tea through filter." << std::endl;
}

void Tea::add_condiments()
{
    std::cout << "Add Slices of Lemon." << std::endl;
}
